<%@page import="com.ailk.dazzle.util.web.ActionUtils"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Date"%>
<%@page import="com.ailk.dazzle.util.type.DateUtils"%>
<%@page import="com.ei.itop.common.util.DateListUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="i18n" uri="../../WEB-INF/i18n.tld"%>
<%
	List<String> months = DateListUtil.getMonthList(DateUtils.string2Date("2014-01-01", DateUtils.FORMATTYPE_yyyy_MM_dd), new Date());
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<%@ include file="../common/commonHead.jsp"%>
	<%@ include file="../common/easyuiHead.jsp"%>
	<title></title>
	<script type="text/javascript" src="<%=rootPath%>/page/stat/js/ticketAnalysisReport.js"></script>
</head>
<body style="background:#fff;padding:20px">
<div class="mb10" style="width:500px;margin-left:auto;margin-right:auto">
	<!-- 客户 -->
	<div class="form-group clearfix p10">
   	 	<label id="custSelLabel" class="col-sm-3 control-label"><i18n:message code="i18n.stat.CustLabel"/></label>
    	<div class="col-sm-9">
		      <input style="width:100%" id="custId" />
		</div>
	</div>
	<!-- 统计时间 -->
	<div class="form-group clearfix  p10">
		<label class="col-sm-3 control-label"><i18n:message code="i18n.stat.DateRangeLabel"/></label>
	    <div class="col-sm-9">
	    	<select id="statStartDate" style="width:45%">
	    		<% for(String month:months) { %>
	    			<option value="<%=month%>"><%=month%></option>
	    		<% } %>
	    	</select>
		    <span style="color:#999">—</span>&nbsp;
		    <select id="statEndDate" style="width:45%">
	    		<% for(String month:months) { %>
	    			<option value="<%=month%>"><%=month%></option>
	    		<% } %>
	    	</select>
	    </div>
	</div>
    <div class="clearfix p10" style="text-align:center">
		<button id="exportSubBtn" class="btn btn-primary" type="button" onclick="exportReport()"><i18n:message code="i18n.stat.ExportSubBtn" /></button>
		<button id="exportResetBtn" class="btn btn-primary btn-outline" type="button" onclick="exportReset()"><i18n:message code="i18n.stat.ExportResetBtn" /></button>
  	</div>
  	<iframe id="exportIframe" src="" width="0" height="0"></iframe>
</div>
</body>
</html>